﻿using System;
using CQRS.Events;

namespace CQRS.Sample.Domain.Events
{
    public class PlaneHasCrashedEvent: Event
    {
        public Guid PlaneId { get; set; }
        public string Location { get; set; }
        public long Aboard { get; set; }
        public long Fatalities { get; set; }
        public string Route { get; set; }
        public DateTime CrashDate { get; set; }

        public PlaneHasCrashedEvent(Guid planeId, string location, long aboard, long fatalities, string route, DateTime crashDate)
        {
            PlaneId = planeId;
            Location = location;
            Aboard = aboard;
            Fatalities = fatalities;
            Route = route;
            CrashDate = crashDate;
        }
    }
}
